home *** CD-ROM | disk | FTP | other *** search
/ Quarterdeck InternetSuite / Quarterdeck InternetSuite.iso / qsockpro.qip / GEORGIAN.MPS < prev    next >
Encoding:
Text File  |  1996-03-20  |  1005 b   |  51 lines

  1. # Quarterdeck Georgian Net SLIP or PPP script
  2. # Michael Bryant II   10/25/95
  3.  
  4. STRING username
  5. STRING password
  6. STRING IPaddress
  7. STRING framing
  8.  
  9. # TRACE ON
  10.  
  11. SetTimeout 60
  12.  
  13. # Get username from access method
  14. CfgGetValue "Username" username
  15. IF result = 0 THEN
  16.     ABORT "Can't load Username from qdeck.ini"
  17. ENDIF
  18.  
  19. # get password from access method
  20. CfgGetValue "Password" password
  21. IF result = 0 THEN
  22.     ABORT "Can't load Password from qdeck.ini"
  23. ENDIF
  24.  
  25. # get framing from access method
  26. CfgGetValue "Framing" framing
  27. IF result = 0 THEN
  28.     ABORT "Can't load Framing (SLIP or PPP) from qdeck.ini"
  29. ENDIF
  30.  
  31. DELAY 2
  32.  
  33. CommWaitFor     "login"
  34.     CommSend username
  35.     CommSend "%r"
  36.  
  37. CommWaitFor     "assword"
  38.     CommSend password
  39.     CommSend "%r"
  40.  
  41. IF framing = "MPSLIP" THEN
  42.     CommWaitFor "our address is"
  43.         CommReadIPaddr IPAddress     # IP address should be next word
  44.         CfgSetValue    "IPAddress" IPaddress    # store the IP address
  45.     PRINT "IPAddress ="; IPAddress
  46. ENDIF
  47.  
  48. DELAY 2
  49.  
  50. END
  51.